package com.jiang.mall.mallproduct.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//二级分类vo
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2Vo {

    private Long id;
    private String name;
    private String catelog1Id;//一级分类父id
    private List<Catalog3Vo> catalog3List;//三级子分类 与 catalogLoader.js 中的 catalog3List 名字要对应

    //三级分类vo
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3Vo {

        private String catelog2Id;//二级分类父id
        private Long id;
        private String name;

    }
}
